package com.junmo.fanbizhidemo.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.junmo.fanbizhidemo.R;
import com.junmo.fanbizhidemo.view.ExplosionField;

/**
 * Created by huruihua on 2017/8/25.
 */
public class SelectFragment extends Fragment {
    private ImageView select_img;
    // 实例化粒子动画
    private ExplosionField explosionField;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.fragment_select_layout,container,false);
        findView(view);
        return view;
    }

    private void findView(View view) {
        select_img = (ImageView) view.findViewById(R.id.select_img);
        explosionField = new ExplosionField(getActivity());
        explosionField.addListener(select_img);
    }
}
